﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IBLL;
using Microsoft.AspNetCore.Mvc;

namespace MedicalSystem.Controllers
{
    public class LoginController : Controller
    {
        IUserInfoBLL _bll;

        public LoginController(IUserInfoBLL bll)
        {
            _bll = bll;
        }

        /// <summary>
        /// 登录
        /// </summary>
        /// <returns></returns>
        public IActionResult Loginsss()
        {
            return View();
        }

        [HttpGet]
        public JsonResult ListLogin(string name, string pwd)
        {
            return Json(_bll.ListLogin(name, pwd));
        }


    }
}
